package com.ftx.manager.tag.impl;

import com.ftx.dao.TagMapper;
import com.ftx.domain.alias.Tag;
import com.ftx.manager.tag.TagManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by fengtingxin on 2019/6/11.
 */
@Service
public class TagManagerImpl implements TagManager {


    @Resource
    private TagMapper tagMapper;

    @Override
    public List<Tag> listAllTags() {
        return tagMapper.listAllTags();
    }


    @Transactional
    public void insert(Tag tag) {
        tagMapper.insert(tag);
    }
}
